home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 050a / vmix264.zip / DPATH.DOC next >
Text File  |  1989-03-05  |  12KB  |  419 lines

  1.  
  2.  
  3.  
  4.  
  5.                  DataPath 1.2
  6.  
  7.                   by
  8.  
  9.                  Bruce Dubbs
  10.                  GDC Software
  11.                122 Valencia Dr.
  12.                Universal City, TX 78148
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.                DataPath Topics
  21.  
  22.         Purpose.....................................2
  23.  
  24.         System Requirements.........................2
  25.  
  26.         How to use DataPath.........................2
  27.  
  28.         Examples....................................3
  29.  
  30.         Features....................................5
  31.  
  32.         Technical Details...........................6
  33.  
  34.         Limitations.................................7
  35.  
  36.         References..................................7
  37.  
  38.         Disclaimer..................................8
  39.  
  40.         Modification History........................9
  41.  
  42.         Suggestions for use........................10
  43.  
  44.  
  45. Page 2                        DataPath - GDC Software
  46.  
  47.  
  48.  
  49.                    Purpose
  50.  
  51.     DataPath is used to specify directories, other than the current
  52. one, to be searched by executing programs, in the event that a file
  53. that needs to be read cannot be found in the current directory.
  54.  
  55.  
  56.              System Requirements
  57.  
  58.     DataPath requires 2162 bytes of disk space ( 5 512-byte sectors).
  59. It becomes memory resident the first time it is run and increases the
  60. size of the operating system by 1440 bytes.  It will run on any com-
  61. puter using the MS-DOS or PC-DOS operating systems version 2.0 or
  62. higher.
  63.  
  64.  
  65.              How to use DataPath
  66.  
  67.  
  68.     Entry Form
  69.  
  70.     DATAPATH [d:][pathname [;[d:]pathname]...][/x]
  71.  
  72.     where  'd' is the letter of the designated disk drive; and
  73.         pathname' is a sequence of characters of the form:
  74.  
  75.         [\][directory][\directory...][\]
  76.  
  77.         Optionally you may use the MS-DOS shorthand notation
  78.         shown below in lieu of 'directory':
  79.  
  80.         .    MS-DOS uses this shorthand symbol to indicate the name
  81.         of the current working directory.  MS-DOS automati-
  82.         cally creates this entry when a directory is made.
  83.  
  84.         ..    MS-DOS uses this shorthand symbol to indicate the name
  85.         of the current directory's parent directory.  MS-DOS
  86.         automatically creates this entry when a directory is
  87.         made.
  88.  
  89.         Note: The two shorthand symbols do not exist in the root
  90.         directory.
  91.  
  92.         /x is one or more of the following switches:
  93.  
  94.           /V, verbose mode, or
  95.           /Q, quiet mode, or
  96.           /R, allow file opens for read only, or
  97.           /W, allow file opens for read or write, or
  98.           /H, display help information.
  99.  
  100.  
  101. Page 3                        DataPath - GDC Software
  102.  
  103.     Example 1
  104.  
  105.         If you are in directory \DATA and you want to use your
  106.      copy of dBASE II which is in subdirectory \DBASE to work on
  107.      data in your current directory, use the following sequence of
  108.      commands:
  109.  
  110.         DATAPATH \DBASE<return>
  111.         PATH \DBASE<return>
  112.         DBASE<return>
  113.  
  114.     Example 2
  115.  
  116.         If you want to see the current DataPath, type:
  117.  
  118.         DATAPATH<return>
  119.  
  120.         The current DataPath will be displayed.
  121.  
  122.     Example 3
  123.  
  124.         If you want to disable DataPath type:
  125.  
  126.         DATAPATH   <return>
  127.  
  128.         One or more blanks should be typed after the command
  129.      before the return.
  130.  
  131.     Example 4
  132.  
  133.         If you have all your DOS programs on a subdirectory named
  134.      \DOS, Lotus 123 files in a subdirectory named \LOTUS, dBase
  135.      files in a subdirectory named \DBASE, and an editor in a sub-
  136.      directory named \EDITOR, and you want to access any of the
  137.      programs from any subdirectory, use the following sequence:
  138.  
  139.         PATH     \DOS;\LOTUS;\DBASE;\EDITOR
  140.         DATAPATH \DOS;\LOTUS;\DBASE;\EDITOR
  141.  
  142.         Note: This configuration will add a noticeable time delay
  143.      to most applications that read files and to COMMAND.COM find-
  144.      ing most programs. Using batch files to set PATH and DataPath
  145.      is a much cleaner and quicker method.
  146.  
  147. Page 4                        DataPath - GDC Software
  148.  
  149.     Example 5
  150.  
  151.         If your programs are on disk A and your data is on disk B,
  152.      use this sequence:
  153.  
  154.         PATH A:
  155.         DATAPATH A:
  156.  
  157.         or alternatively to search both disks from either loca-
  158.      tion:
  159.  
  160.         PATH A:;B:
  161.         DATAPATH A:;B:
  162.  
  163.         This example assumes that all files on drives A and B are
  164.      in the root directory.  Subdirectories are not of great use
  165.      on 360K floppy disks, however, DataPath will work properly on
  166.      floppy diskettes.
  167.  
  168.     Example 6
  169.  
  170.         You want to enable spelling dictionary files on subdirec-
  171.      tory \WORD to be accessed when opened for writing and you
  172.      want to suppress the DataPath messages:
  173.  
  174.         DATAPATH C:\WORD/W/Q
  175.  
  176.         Messages will remain suppressed until verbose mode is
  177.      reset.
  178.  
  179.     Example 7
  180.  
  181.         You want to reset DataPath to search the \BIN subdirec-
  182.      tory, disable opens for read, and reset verbose mode.
  183.  
  184.         DATAPATH C:\BIN/V/R
  185.  
  186.     Example 8
  187.  
  188.         You want to display quick help information about the data
  189.      path and its switches.
  190.  
  191.         DATAPATH /h
  192.  
  193.         The data path will not be updated if the /h switch is pre-
  194.      sent.
  195.  
  196.  
  197. Page 5                        DataPath - GDC Software
  198.  
  199.                    Features
  200.  
  201.         DataPath supports the following features:
  202.  
  203.         1.    DataPath will ignore invalid drives or path specifica-
  204.      tions.
  205.  
  206.         2.    DataPath has a very small size.  When installed, it
  207.      uses only 1440 bytes of RAM.
  208.  
  209.         3.    DataPath will skip over a drive listed in the DataPath
  210.      if the drive door is left open.  You will have to wait for
  211.      the disk to time out, however.  You will get the normal
  212.      Abort, Retry, Ignore command if the default drive door is
  213.      open.
  214.  
  215.         4.    THE SOURCE TO DataPath IS RELEASED TO THE PUBLIC
  216.      DOMAIN!
  217.  
  218.         5.    DataPath works on any MS-DOS or PC-DOS system. (Ver-
  219.      sion 2.0 or higher.)  It is not dependent on hardware.
  220.  
  221.         6.    DataPath is compatible with CP/M style function calls
  222.      in MS-DOS for older programs such as dBase II.
  223.  
  224. Page 6                        DataPath - GDC Software
  225.  
  226.                    Technical Details
  227.  
  228.         DataPath was written in assembly language and was optim-
  229.      ized for both small size and fast operation.  The source for
  230.      the program is in the file DP12.ASM.
  231.  
  232.         DataPath works by intercepting three different function
  233.      calls to the operating system.  These are 'OPEN', 'FILE
  234.      SIZE', and 'OPEN FILE HANDLE'.  The usual call within MS-DOS
  235.      now is 'OPEN FILE HANDLE', but some programs use the older
  236.      functions.  Lotus 1-2-3 Version 1A, for instance, uses 'FILE
  237.      SIZE' to open a file.
  238.  
  239.         DataPath also intercepts older CP/M style call to the
  240.      operating system, converts the calls to MS-DOS calls, and
  241.      executes accordingly. The dBase II program uses this method.
  242.  
  243.         DataPath uses the 256 byte PSP (program segment prefix)
  244.      that is left resident when the program installs itself.  It
  245.      uses the space for storing the DataPath and for working
  246.      space.
  247.  
  248.  
  249.  
  250.         The program logic for DataPath is as follows:
  251.  
  252.         1.    If DataPath is not interested in the function, pass it
  253.      to DOS undisturbed.
  254.  
  255.         2.    Try the function.  If successful, return to the call-
  256.      ing program.
  257.  
  258.         3.    If the file is to be opened for writing and the /R
  259.      option (open for read only) is in effect, return.
  260.  
  261.         4.    If the path of the desired file is specified, return.
  262.      If the program knows enough to specify a path, DataPath will
  263.      not interfere. DataPath WILL search if only the disk drive is
  264.      specified.
  265.  
  266.         5.    Search for the file along the DataPath.  If not found,
  267.      return the error code found in step 2.  If found, complete
  268.      the function and return to the calling program.
  269.  
  270. Page 7                        DataPath - GDC Software
  271.  
  272.  
  273.                   Limitations
  274.  
  275.         Listed below are the known limitations of DataPath:
  276.  
  277.         1.    The maximum length of the DataPath string is 118 char-
  278.      acters. This is due to the 127 character limitation MS-DOS
  279.      puts on input strings.
  280.  
  281.         2.    DataPath cannot be uninstalled without rebooting the
  282.      system. This should not be a problem because of its small
  283.      size.    DataPath can be disabled by making the DataPath string
  284.      blank.
  285.  
  286.         3. The DataPath will not accept wildcards.    They will be
  287.      ignored.
  288.  
  289.         4.    DataPath will not create aliases for pathnames.
  290.  
  291.         5.    DataPath will not automatically search subdirectories
  292.      beneath the specified directory.
  293.  
  294.  
  295.                   References
  296.  
  297.         The following magazine article contains information on
  298.      utilities that do the same function as DataPath:
  299.  
  300.         PC Tech Journal - April 1985 - pp 139-145.
  301.         "File Search Help for PC-DOS" by Arthur A. Gleckler
  302.  
  303.  
  304.         The following  magazine article contains general informa-
  305.      tion on resident utilities:
  306.  
  307.         PC World - June 1986 - pp 270-284.
  308.         "Battle for the Background" by Bruce Owen
  309.  
  310.  
  311.         The following programs perform the same basic function as
  312.      DataPath.  They contain different features, however their
  313.      basic intent is the same as DataPath.
  314.  
  315.         DPath30   - Public Domain - No source
  316.  
  317.         FilePath  - Commercial  - $ 37.50
  318.         Scout     - Commercial  - $ 29.95
  319.         SuperPATH - Commercial  - $ 39.95
  320.         EasyPath  - Commercial  - $100.00
  321.  
  322. Page 8                        DataPath - GDC Software
  323.  
  324.  
  325.                   Disclaimer
  326.  
  327.         There is no copyright associated with this program.  It
  328.      is, however, intended for private noncommercial distribution
  329.      only.    You may make copies freely and use the source code in
  330.      any manner that you wish. Please do not charge anyone for
  331.      this program.    It is free.
  332.  
  333.         This software is not warranted in any manner.  No guaran-
  334.      tee is made that the program operates as it was designed.  I
  335.      will not be liable for any damages that may occur by using
  336.      this program.    If you use the program, you agree to this.
  337.  
  338.         Any comments, suggestions, or criticisms are welcome.
  339.      Examples of conflicts with other memory resident utilities or
  340.      the inability of DataPath to work with a particular program
  341.      are especially welcome.  I can be normally be reached at the
  342.      following:
  343.         Telstar Bulletin Board (512) 822-8882
  344.         SAHUG Bulletin Board   (512) 341-0586
  345.         Compuserve ID: 72330,123
  346.  
  347.         If you distribute this program, or a modification of this
  348.      program, it would be nice for you to acknowledge the source.
  349.  
  350.                   Bruce Dubbs
  351.                  GDC Software
  352.                    122 Valencia Dr.
  353.                Universal City, TX 78148
  354.                    September 2, 1986
  355.  
  356.  
  357. Page 9                        DataPath - GDC Software
  358.  
  359.  
  360.                  Modification History
  361.  
  362.         Version 1.0 - September 2, 1986 - Original release.
  363.  
  364.         Version 1.1 - September 18, 1986 - Add /Q, /V, /W, and /R
  365.               switches.  Allow DataPath to be searched if
  366.               disk drive is specified in ASCIIZ file spe-
  367.               cification.
  368.  
  369.         Version 1.2 - October 9, 1986 - Add /H switch.  Improve
  370.               memory resident check for compatability with
  371.               other GDC memory resident utilities.
  372.  
  373.  
  374. Page 10                     DataPath - GDC Software
  375.  
  376.  
  377.  
  378.               Suggestions for use
  379.  
  380.         The best way to use DataPath is to organize your disk
  381.      subdirectories such that the executable and supporting files
  382.      are on a different subdirectory than the data files.  The
  383.      best example is WordStar.  If you put the WordStar executable
  384.      and overlays in a subdirectory 'WORDSTAR' and have your data
  385.      files in other subdirectories, the following benefits occur:
  386.  
  387.      1.  You can execute WordStar from ANY subdirectory.
  388.      2.  You do not have to look for your data files intermixed
  389.          with executable and overlay files.
  390.  
  391.         To do this, set the following to execute in the
  392.      AUTOEXEC.BAT file that executes when you boot MS-DOS.
  393.  
  394.         PATH \WORDATAR
  395.         DATAPATH \WORDSTAR
  396.         WS
  397.  
  398.         This procedure can be generalized to any set of programs
  399.      and overlays.    To keep from setting multiple paths for all
  400.      searches, a set of batch files can be created such as the
  401.      following file that executes dBase III.
  402.  
  403.  
  404.      DO.BAT:    echo off
  405.             datapath c:\dbase
  406.             path c:\dbase
  407.             dbase %1
  408.             path c:\bin;c:\batch
  409.             datapath c:\bin
  410.  
  411.         This example assumes the dBase executable files are in the
  412.      directory \dbase, the batch file DO.BAT is in the directory
  413.      \batch, the MS-DOS executable files are in \bin and the data
  414.      for dBase are in the current directory.
  415.  
  416.      For more information on batch files, consult the MS-DOS
  417.      manual.
  418.  
  419.